package lambda;

/**
 * @author zhangxin
 * @date 2020/9/27
 */
public class MyForEach<T> {

    private T t;

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    void test(MyConsumer<T> myConsumer) {
        myConsumer.consumer(this.t);
    }
}
